package com.siashan.unipay4j.wx;

import com.siashan.unipay4j.wx.conf.WxMchInfo;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.regex.Pattern;

/**
 * 微信支付配置信息
 *
 * @author siashan
 * @since v1.0.1
 */
@Data
@ConfigurationProperties(prefix = WxPayProperties.PREFIX)
public class WxPayProperties {

    /**
     * Prefix of {@link WxPayProperties}.
     */
    public static final String PREFIX = "siashan.unipay4j.wx";

    private static final Pattern PATTERN = Pattern.compile("-(\\w)");


    private WxMchInfo config;

}
